package com.geek;

public class Assert {


    public static void isTrue(boolean expression, String message) {
        if (!expression) {
            throw new IllegalArgumentException(message);
        }
    }

    public static void isNull(Object param, String message) {
        if (param != null) {
            throw new IllegalArgumentException(message);
        }
    }


    public static void notNull(Object param, String message) {
        if (param == null) {
            throw new IllegalArgumentException(message);
        }
    }

}
